package com.Calculator.models.impl;

import com.Calculator.models.iTheme;

import java.awt.*;

public class Theme implements iTheme {
    //窗体宽度
    private int width;
    //窗体长度
    private int height;
    //背景颜色
    private Color backGroundColor;

    //字体设置
    private Font font;
    //按钮背景颜色
    private Color buttonColor;

    //无参构造方法
    public Theme() {
        width = 480;
        height = 600;
        backGroundColor = new Color(224, 224, 224);
        font = new Font(null, Font.BOLD, 20);
        buttonColor = new Color(244, 244, 244);
    }
    //有参构造方法，并没有使用
    public Theme(int width, int height, Color backGroundColor, Font font) {
        this.width = width;
        this.height = height;
        this.backGroundColor = backGroundColor;
        this.font = font;
    }

    @Override
    public int getWidth() {
        return width;
    }

    @Override
    public void setWidth(int width) {
        this.width = width;
    }

    @Override
    public int getHeight() {
        return height;
    }

    @Override
    public void setHeight(int height) {
        this.height = height;
    }

    @Override
    public Color getBackgroundColor() {
        return backGroundColor;
    }

    @Override
    public void setBackgroundColor(Color backGroundColor) {
        this.backGroundColor = backGroundColor;
    }

    @Override
    public Font getFont() {
        return font;
    }

    @Override
    public void setFont(Font font) {
        this.font = font;
    }

    @Override
    public Color getButtonColor() {
        return buttonColor;
    }

    @Override
    public void setButtonColor(Color color) {
        this.buttonColor = color;
    }
}
